﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data.Performance
{


    public enum OrderTypeEnum 
    {
        a = 1,
        b = 2,
        c = 3
    }
    public class EnumConvert
    {
        public static void GetKeyValueNyEnum<T>() where T : Enum
        {
            foreach (var em in Enum.GetValues(typeof(T)))
            {
                Console.WriteLine((int)em);
            }
            foreach (var s in Enum.GetNames(typeof(T)))
            {
                Console.WriteLine(s);
            }
        }
    }
}
